<template>
  <div class="myhouse wrap">
    <!-- <div class="box" v-for="item in obj" :key="item.owner_id"> -->
    <div class="box">
      <van-collapse v-model="activeNames">
        <van-collapse-item title="姓名" name="1">{{
          obj.owner_name
        }}</van-collapse-item>
        <van-collapse-item title="电话" name="2">{{
          obj.owner_tel
        }}</van-collapse-item>
        <van-collapse-item title="家庭成员数" name="3">{{
          obj.owner_peoplenum
        }}</van-collapse-item>
        <van-collapse-item title="楼号" name="4">{{
          obj.owner_buildingnumber
        }}</van-collapse-item>
        <van-collapse-item title="单元号" name="5">{{
          obj.owner_unit
        }}</van-collapse-item>
        <van-collapse-item title="楼层数" name="6">{{
          obj.owner_floor
        }}</van-collapse-item>
        <van-collapse-item title="门牌号" name="7">{{
          obj.owner_tablet
        }}</van-collapse-item>
      </van-collapse>
    </div>
    <!-- </div> -->
  </div>
</template>

<script>
// import { ownerLogin } from "../api/api";
export default {
  // 定义属性
  name: "MyHouse",
  data() {
    return {
      activeNames: [""],
      obj: {},
    };
  },
  methods: {},
  // 生命周期 - 创建完成（可以访问当前this实例）
  created() {
    // this.getList();
    // console.log(localStorage.getItem("Owner"));
    var text = localStorage.getItem("Owner")
    this.obj = JSON.parse(text);
  },
  // 生命周期 - 挂载完成（可以访问DOM元素）
  mounted() {},
};
</script>

<style lang='scss' scoped>
</style>